package com.ssm.entity;

import java.util.ArrayList;
import java.util.List;

public class VideomessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;
    
    protected boolean  count;
    
    
 

	public boolean isCount() {
		return count;
	}

	public void setCount(boolean count) {
		this.count = count;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	public VideomessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andVideoidIsNull() {
            addCriterion("VideoID is null");
            return (Criteria) this;
        }

        public Criteria andVideoidIsNotNull() {
            addCriterion("VideoID is not null");
            return (Criteria) this;
        }

        public Criteria andVideoidEqualTo(Integer value) {
            addCriterion("vm.VideoID =", value, "videoid");
            return (Criteria) this;
        }
        
        
        public Criteria andVideoidNotEqualTo(Integer value) {
            addCriterion("VideoID <>", value, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideoidGreaterThan(Integer value) {
            addCriterion("VideoID >", value, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideoidGreaterThanOrEqualTo(Integer value) {
            addCriterion("VideoID >=", value, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideoidLessThan(Integer value) {
            addCriterion("VideoID <", value, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideoidLessThanOrEqualTo(Integer value) {
            addCriterion("VideoID <=", value, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideoidIn(List<Integer> values) {
            addCriterion("VideoID in", values, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideoidNotIn(List<Integer> values) {
            addCriterion("VideoID not in", values, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideoidBetween(Integer value1, Integer value2) {
            addCriterion("VideoID between", value1, value2, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideoidNotBetween(Integer value1, Integer value2) {
            addCriterion("VideoID not between", value1, value2, "videoid");
            return (Criteria) this;
        }

        public Criteria andVideonameIsNull() {
            addCriterion("VideoName is null");
            return (Criteria) this;
        }

        public Criteria andVideonameIsNotNull() {
            addCriterion("VideoName is not null");
            return (Criteria) this;
        }

        public Criteria andVideonameEqualTo(String value) {
            addCriterion("VideoName =", value, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameNotEqualTo(String value) {
            addCriterion("VideoName <>", value, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameGreaterThan(String value) {
            addCriterion("VideoName >", value, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameGreaterThanOrEqualTo(String value) {
            addCriterion("VideoName >=", value, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameLessThan(String value) {
            addCriterion("VideoName <", value, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameLessThanOrEqualTo(String value) {
            addCriterion("VideoName <=", value, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameLike(String value) {
            addCriterion("VideoName like", value, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameNotLike(String value) {
            addCriterion("VideoName not like", value, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameIn(List<String> values) {
            addCriterion("VideoName in", values, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameNotIn(List<String> values) {
            addCriterion("VideoName not in", values, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameBetween(String value1, String value2) {
            addCriterion("VideoName between", value1, value2, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideonameNotBetween(String value1, String value2) {
            addCriterion("VideoName not between", value1, value2, "videoname");
            return (Criteria) this;
        }

        public Criteria andVideorecommendIsNull() {
            addCriterion("VideoRecommend is null");
            return (Criteria) this;
        }

        public Criteria andVideorecommendIsNotNull() {
            addCriterion("VideoRecommend is not null");
            return (Criteria) this;
        }

        public Criteria andVideorecommendEqualTo(String value) {
            addCriterion("VideoRecommend =", value, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendNotEqualTo(String value) {
            addCriterion("VideoRecommend <>", value, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendGreaterThan(String value) {
            addCriterion("VideoRecommend >", value, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendGreaterThanOrEqualTo(String value) {
            addCriterion("VideoRecommend >=", value, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendLessThan(String value) {
            addCriterion("VideoRecommend <", value, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendLessThanOrEqualTo(String value) {
            addCriterion("VideoRecommend <=", value, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendLike(String value) {
            addCriterion("VideoRecommend like", value, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendNotLike(String value) {
            addCriterion("VideoRecommend not like", value, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendIn(List<String> values) {
            addCriterion("VideoRecommend in", values, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendNotIn(List<String> values) {
            addCriterion("VideoRecommend not in", values, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendBetween(String value1, String value2) {
            addCriterion("VideoRecommend between", value1, value2, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andVideorecommendNotBetween(String value1, String value2) {
            addCriterion("VideoRecommend not between", value1, value2, "videorecommend");
            return (Criteria) this;
        }

        public Criteria andReleasetimeIsNull() {
            addCriterion("ReleaseTime is null");
            return (Criteria) this;
        }

        public Criteria andReleasetimeIsNotNull() {
            addCriterion("ReleaseTime is not null");
            return (Criteria) this;
        }

        public Criteria andReleasetimeEqualTo(String value) {
            addCriterion("ReleaseTime =", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeNotEqualTo(String value) {
            addCriterion("ReleaseTime <>", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeGreaterThan(String value) {
            addCriterion("ReleaseTime >", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeGreaterThanOrEqualTo(String value) {
            addCriterion("ReleaseTime >=", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeLessThan(String value) {
            addCriterion("ReleaseTime <", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeLessThanOrEqualTo(String value) {
            addCriterion("ReleaseTime <=", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeLike(String value) {
            addCriterion("ReleaseTime like", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeNotLike(String value) {
            addCriterion("ReleaseTime not like", value, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeIn(List<String> values) {
            addCriterion("ReleaseTime in", values, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeNotIn(List<String> values) {
            addCriterion("ReleaseTime not in", values, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeBetween(String value1, String value2) {
            addCriterion("ReleaseTime between", value1, value2, "releasetime");
            return (Criteria) this;
        }

        public Criteria andReleasetimeNotBetween(String value1, String value2) {
            addCriterion("ReleaseTime not between", value1, value2, "releasetime");
            return (Criteria) this;
        }

        public Criteria andVideostateIsNull() {
            addCriterion("VideoState is null");
            return (Criteria) this;
        }

        public Criteria andVideostateIsNotNull() {
            addCriterion("VideoState is not null");
            return (Criteria) this;
        }

        public Criteria andVideostateEqualTo(Integer value) {
            addCriterion("VideoState =", value, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateNotEqualTo(Integer value) {
            addCriterion("VideoState <>", value, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateGreaterThan(Integer value) {
            addCriterion("VideoState >", value, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateGreaterThanOrEqualTo(Integer value) {
            addCriterion("VideoState >=", value, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateLessThan(Integer value) {
            addCriterion("VideoState <", value, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateLessThanOrEqualTo(Integer value) {
            addCriterion("VideoState <=", value, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateIn(List<Integer> values) {
            addCriterion("VideoState in", values, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateNotIn(List<Integer> values) {
            addCriterion("VideoState not in", values, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateBetween(Integer value1, Integer value2) {
            addCriterion("VideoState between", value1, value2, "videostate");
            return (Criteria) this;
        }

        public Criteria andVideostateNotBetween(Integer value1, Integer value2) {
            addCriterion("VideoState not between", value1, value2, "videostate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}